package com.itheima.stock.api;

import com.itheima.stock.dto.LoginDTO;
import com.itheima.stock.response.ResponseResult;
import com.itheima.stock.vo.CaptchaVO;
import com.itheima.stock.vo.LoginVO;
import org.springframework.web.bind.annotation.*;

/**
 * @author kaoM1Jy
 * @date 2025/11/9 20:59
 * @description:
 */
@RequestMapping("/api")
public interface UserControllerAPI {

    @PostMapping( "/login")
    ResponseResult<LoginVO> login(@RequestBody LoginDTO dto);


    @GetMapping("/captcha")
    ResponseResult <CaptchaVO>captcha();


    @GetMapping("/user/test")
    String sayHello(@RequestParam("name")String name);


}
